]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
search: Match an empty array, not a null one
authorJasper St. Pierre <jstpierre@mecheye.net>
Tue, 30 Sep 2014 06:19:55 +0000 (00:19 -0600)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 30 Sep 2014 06:55:01 +0000 (00:55 -0600)
When the terms are missing, we pass an empty array, not a null one.

js/ui/search.js

index ec00bae10a1360a6774b494e04bc34d84fb86340..709484dae084e5dea99580cd8573b0c5459a33d8 100644 (file)
@@ -492,7 +492,7 @@ const SearchResults = new Lang.Class({
         this._cancellable.cancel();
         this._cancellable.reset();
 
-        if (!terms) {
+        if (terms.length == 0) {
             this._clearSearchTimeout();
             return;
         }